import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "陆小果的博客",
  description: "部署网站",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: '博客文章', link: '/posts' },
      // { text: '跨域', link: '/cross-origin' },
      // { text: 'JavaScript内功修炼', link: '/posts#javascript内功修炼系列' }
    ],

    sidebar: [
      {
        text: '前端基础',
        items: [
          { text: '跨域', link: '/cross-origin' }
        ]
      },
      {
        text: 'JavaScript内功修炼系列',
        items: [
          { text: '编译原理、执行上下文与作用域链', link: '/JavaScript内功修炼：编译原理、执行上下文与作用域链全方位实战解析' },
          { text: '浏览器事件模型', link: '/JavaScript内功修炼：浏览器事件模型' },
          { text: '内存管理与分代垃圾回收机制', link: '/JavaScript内功修炼：内存管理与分代垃圾回收机制详解' },
          { text: '探索原型机制与各类继承模式', link: '/JavaScript内功修炼：探索原型机制与各类继承模式' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
